package com.briup.jz.service;

import com.briup.jz.bean.Order;
import com.briup.jz.bean.extend.OrderExtend;
import com.briup.jz.utils.CustomerException;
import com.briup.jz.vm.OrderVM;

import java.util.List;

public interface IOrderService {

    void commit(OrderVM orderVM) throws CustomerException;

    List<Order>findAll();


    List<OrderExtend> query(String status);

    OrderExtend findOrderDetailsById(long id);

    void payOrder(long orderId) throws Exception;
    void sendOrder(long orderId,long employeeId) throws Exception;
/*    void takeOrder(long orderId)throws Exception;*/
    void rejectOrder(long orderId)throws Exception;
    void confirmOrder(long orderId)throws Exception;
}
